package com.service.manager.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dao.manager.MessageDaoW;
import com.po.MessageBeanW;
import com.service.manager.MessageServiceW;

@Service
public class MessageServiceImpW implements MessageServiceW {

	@Resource(name="messageDaoImpW")
	private MessageDaoW messageDao;
	@Override
	public List<MessageBeanW> getMessageList(MessageBeanW message) {
		// TODO Auto-generated method stub
		List<MessageBeanW> list = messageDao.getMessageListW(message);
		return list;
	}

	@Override
	public int delMessage(String[] array) {
		// TODO Auto-generated method stub
		int result = messageDao.delMessageW(array);
		return result;
	}

	@Override
	public int updateMessage(MessageBeanW message) {
		// TODO Auto-generated method stub
		int result = messageDao.updateMessageW(message);
		return result;
	}

	
}
